#ifndef RENDERING_ENGINE_H
#define RENDERING_ENGINE_H


#include <map>
#include <SFML/Graphics.hpp>
#include <gtest/gtest.h>
#include "Character.h"
#include "Bullet.h"
#include "SpriteManager.h"
#include "spriteEnum.h"

class RenderingEngine{

public:

	RenderingEngine(sf::RenderWindow &window, SpriteManager &_m);
	void drawCharacterMap(const std:: map <int, Character*>&);
	void drawBulletMap(const std::map <int, Character*>&);
	void drawText(std::string texte, int size, sf::Color color, sf::Vector2f position);
	void clear(sf::Color color);
	void display();
	void drawRectangle(const sf::RectangleShape &shape);
	void changeCursor(sf::CircleShape&, const sf::Vector2f &mousePosition);
	void drawBackground(int level);
	void endGame(bool victory);
	void drawVideo();
	void drawSimpleSprite(sf::Vector2f position, sf::Vector2f scale, SpriteEnum sprite);

private:


	SpriteManager &_SpriteManager;
	sf::RenderWindow &_window;
	int videoTimer=1;
	bool readingNormalDirection=true;
	
};






#endif